From fc04446e4de2f79ee30a711249d8f6a6d4a1df5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 26 Aug 2005 13:47:53 +0000 Subject: [PATCH] use format.bytes_per_pixel --- tests/babl-html-dump.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/babl-html-dump.c b/tests/babl-html-dump.c index 15bae5b..e26e5a7 100644 --- a/tests/babl-html-dump.c +++ b/tests/babl-html-dump.c @@ -100,14 +100,7 @@ format_html (Babl *babl) int i; printf (""); - { - int bytes=0; - for (i=0; i< babl->format.components; i++) - { - bytes += BABL(babl->format.type[i])->type.bits/8; - } - printf ("%i", bytes); - } + printf ("%i", babl->format.bytes_per_pixel); printf (""); printf (""); printf ("%s", BABL(babl->format.model)->instance.name ); -- 2.30.2